Recall the employee example.
We have talked of instances of abstract employees. These instances are
actual ``examples'' of an abstract employee, hence, they contain actual
values to represent a particular employee. We call these instances objects. |
|
Objects are uniquely
identifiable by a name. Therefore you could have two distinguishable
objects with the same set of values. This is similar to ``traditional''
programming languages where you could have, say two integers i and j
both of which equal to ``2''. Please notice the use of ``i'' and ``j'' in the
last sentence to name the two integers. We refer to the set of values at a
particular time as the state of the object. |